<?php
	session_start();
	include("functions.php");
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Cambodia Job</title>
		<link href="css/bootstrap.css" rel="stylesheet"/>
		<link href="css/bootstrap-responsive.css" rel="stylesheet"/>
		<link href='css/custom.css' rel='stylesheet'/>
	</head>
	<body>
		<div class="container">
			<?php 
				if(!isset($_SESSION["userid"])){
					getHeader();
				}
				else{
			?>
				<div class='row-fluid row-header'>
				<div class='span3 text-center'>
				<a href='/cambodiajob/index.php'>
				<img src='/cambodiajob/img/logo_kh.png' alt='Khschools.com' />
				</a></div>
				<div class='span9'>
				<ul class='nav nav-pills pull-right' id='nav'>
					<li><a href='/cambodiajob/index.php' class='text-white'>Home</a></li>
					<li><a href='/cambodiajob/about.php' class='text-white'>About Us</a></li>
					<li><a href='/cambodiajob/#' class='text-white'>Contact Us</a></li>
					<li><a href="logout.php" class="text-white" id="btnlogout">Logout</a></li>
					</ul></div></div>
			<?php
				}
			?>
		</div>
		<div class='container' style='margin-top: 18px;'>
		<div class='row-fluid'>
			<div class='span6'>
			<h4 class='text-success'>Search Jobs</h4>
			<form name='frm' method='post' class='form-inline'>
					<input type='text' placeholder='keyword'/>
					<select>
						<option>All</option>
						<option>Phnom Penh</option>
						<option>Kampot</option>
					</select>
					<a href='#' class='btn btn-primary'>Search</a>
			</form>
			</div>
			<div class='span6'>
				Other content
			</div>
		</div>
		<div class="row-fluid">
			<div class="span9">
			<?php
				if(isset($_GET["catid"]))
				{
					echo "<h3>". $_GET['catname']."</h3>";
					getJobByCategory($_GET["catid"]);
				}
				if(isset($_GET["locationid"]))
				{
					getJobByLocation($_GET["locationid"]);
				}
			?>
			</div>
			<div class="span3">
				Other
			</div>
		</div>
		</div>
	</body>
</html>